<p id="notice">
	<%= notice %>
</p>

<p>
	<b>Item number:</b>
	<%= @product.item_number %>
</p>

<p>
	<b>Quantity:</b>
	<%= @quantity %>
</p>

<div class="table-responsive">
	<table class="table table-bordered">
		<thead>
			<th>Type</th>
			<th>Sizes</th>
		</thead>
		<tbody>
			<% @size_types.uniq.each do |type| %>
			<tr>
				<td width="10%"><strong><%= type.name %> </strong></td>
				<td>
				<table class="table table-bordered" >
					<tr>
						<% @product.stocks.each do |stock| %>
						<% if stock.size.size_type.id == type.id %>
						<td><strong><%= stock.size.name %> </strong>
						<Br />
						<br />
						<%= stock.quantity %></td>

						<% end %>
						<% end %>
					</tr>
				</table></td>
			</tr>
			<% end %>
		</tbody>
	</table>
</div>
<%= link_to 'Edit', edit_product_path(@product) %> |
<%= link_to 'Back', products_path %>
